<include file="public:header"/>
<div class='container-fluid mt40'>
    <div class="row global-top">
        <div class="col-xs-2">
            <a href="{:U(MODULE_NAME.'/index')}" class="return"></a>
        </div>
        <div class="col-xs-8">
            <div class="text">修改密码</div>
        </div>
        <div class="col-xs-2">
        </div>
    </div>
    <form id="J_password_form" action="{:U('user/editCard')}" method="post">
        <div class="row white-bg login-list">
            <div class="form-list">
                <div class="col-xs-3 name">原开户行</div>
                <div class="col-xs-9 b-b input-text">
                    <input type="text"
                           name="oldbankname"
                           placeholder="没有填写"
                           value="{$arrUserTemp['bankname']}" readonly
                           data-rule-required="true"/>
                </div>
            </div>
            <div class="form-list">
                <div class="col-xs-3 name">原卡号</div>
                <div class="col-xs-9 b-b input-text">
                    <input type="text"
                           name="oldCardid"
                           placeholder="原卡号为空"
                           value="{$arrUserTemp['bankid']}" readonly
                           data-rule-required="true"/>
                </div>
            </div>
            <div class="form-list">
                <div class="col-xs-3 name">登陆密码</div>
                <div class="col-xs-9 b-b input-text">
                    <input type="password"
                           name="oldpassword"
                           placeholder="请输入商城的密码"
                           data-rule-required="true"/>
                </div>
            </div>
            <div class="form-list">
                <div class="col-xs-3 name">新开户行</div>
                <div class="col-xs-9 input-text">
                    <input type="text"
                           name="bankname"
                           placeholder="请输入新卡开户行"
                           data-rule-required="true"/>
                </div>
            </div>
            <div class="form-list">
                <div class="col-xs-3 name">新卡卡号</div>
                <div class="col-xs-9 input-text">
                    <input type="text"
                           name="bankid"
                           placeholder="请输入新卡卡号"
                           data-rule-required="true"/>
                </div>
            </div>
        </div>
        <div class="row mt20">
            <div class="global-submit-bot1">
                <input type="submit" value="确定" class="btnok js-submit-btn"/>
            </div>
        </div>
    </form>
</div>
<include file="public:footer"/>
<script type="text/javascript">
    req(["jquery"], function ($) {
        $(document).ready(function() {
            $('.js-submit-btn').on('click',function(){
                if($('input[name="oldpassword"]').val() == ''){
                    tip('请输入密码');
                    return false;
                }
                if($('input[name="bankid"]').val() == ''){
                    tip('请输入银行卡号');
                    return false;
                }

                if($('input[name="bankname"]').val() == ''){
                    tip('开户银行不能为空');
                    return false;
                }
            });
        });
    });
</script>